<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Edited with XML Spy v2007 (http://www.altova.com) -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>

  <xsl:template match="/">
    <html>
      <body>
        <h2>Albums information</h2>
        
        <table border="1">
          <tr bgcolor="#CCCCCC">
            <th align="left">Name</th>
            <th align="left">Artist</th>
            <th align="left">Year</th>
            <th align="left">Producer</th>
          </tr>
          <xsl:for-each select="catalogue/album">
            <tr>
              <td>
                <xsl:value-of select="name"/>
              </td>
              <td>
                <xsl:value-of select="artist"/>
              </td>
              <td>
                <xsl:value-of select="year"/>
              </td>
              <td>
                <xsl:value-of select="producer"/>
              </td>
            </tr>
          </xsl:for-each>
        </table>

        <h2>Songs information</h2>
        <table border="1">
          <tr bgcolor="#CCCCCC">
            <th align="left">Album</th>
            <th align="left">Song</th>
            <th align="left">Duration</th>
          </tr>
          <xsl:for-each select="catalogue/album/song">
            <tr>
              <td>
                <xsl:value-of select="../name"/>
              </td>
              <td>
                <xsl:value-of select="title"/>
              </td>
              <td>
                <xsl:value-of select="duration"/>
              </td>
            </tr>
          </xsl:for-each>
        </table>
        
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>